package com.feige.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feige.pojo.UserAnswer;
import com.feige.result.AjaxResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author feige
 * @since 2021-04-01
 */
public interface UserAnswerService extends IService<UserAnswer> {

    /**
     * 批改和保存用户答案
     * @param token 用户token
     * @param exerciseTitleId 习题标题ID
     * @param userAnswers 用户答案列表
     * @return
     */
    AjaxResult correctAndSave(String token, String exerciseTitleId, List<UserAnswer> userAnswers);
}
